package com.example.kotlincomponent

import kotlinx.coroutines.*

fun main(){
//	runBlocking{
//		println("code runs in coroutine scope")
//		delay(1500)
//		println("code runs in coroutine scope")
//	}

	val job = Job()
	val scope= CoroutineScope(job)
	scope.launch {
		println("code runs in coroutine scope")
	}
//	scope.cancel()

}

suspend fun printDot()= coroutineScope{
	println(".")
	delay(1000)
	launch{

	}
}